/*
 * @Title WelcomeUserAction.java
 * @Description
 * struts2-convention-plugin-x.x.x.jar
 * asm-x.x.jar
 * asm-commons-x.x.jar
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.user.action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.ResultPath;

/**
 * @author lizhen
 */
@Namespace("/User")
@ResultPath(value = "/")
public class WelcomeUserAction extends ActionSupport {

    private static final long serialVersionUID = 1L;
    private String username;

    /**
     * @author lizhen
     */
    public WelcomeUserAction() {
    }

    /**
     * @author lizhen
     */
    public static void main(String[] args) {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Action(value = "welcome", results = {@Result(name = "success", location = "/welcome_user.jsp")})
    public String execute() {
        return SUCCESS;
    }

}
